<% content_for :breadcrumb do %>

<% object_class = object.class.to_s  %>

<ol class="breadcrumb">
<li><%= link_to current_project.name, folders_path %></li>

<%if object_class == 'Folder'%>

	<% object.get_folders.each do |folder| %>
    	<li><%= link_to folder.no_name, folders_folder_path(folder) %></li>
	<%end%>

	<% unless object.new_record? %>
 		<li class="active"><%= link_to object.no_name, folders_folder_path(object) %></li>
 	<%end%>

<%elsif object_class == 'Doc'%>

	<% object.folder.get_folders.each do |folder| %>
    	<li><%= link_to folder.no_name, folders_folder_path(folder) %></li>
	<%end%>
	<% unless object.folder.new_record? %>
 		<li class="active"><%= link_to object.folder.no_name, docs_folder_path(object.folder) %></li>
 	<%end%>


<%end%>


</ol>
<%end%>